/*----------------------------------------------------------------------------------------------
* This source file is part of Kinect-Fighter (A Fighting Game controlled 
*	by Kinect and Keyboard.)
*
* Copyright (c) 2012-2012 Hu Guozhu
*
* Usage of this program is free for non-commercial use and licensed under the
* the terms of the MIT License.
*
*-------------------------------------------------------------------------------------------------*/

#include "stdafx.h"

#include "kferror.h"
#include "KFKinectManager.h"



namespace KinectFighter
{
	IMPLEMENT_SINGLETON(KFKinectManager)

	KFKinectManager::KFKinectManager()
	{
		mNuiSensor = NULL;
	}

	KFRESULT KFKinectManager::Init()
	{
		//if ( !mNuiSensor )
		//{
		//	HRESULT res = NuiCreateSensorByIndex(0, &mNuiSensor);

		//	if ( FAILED(res) )
		//	{
		//		return KF_KINECT_CANOT_CREATE_SENSOR;
		//	}
		//	mInstanceId = mNuiSensor->NuiDeviceConnectionId();

		//	mNextDepthFrameEvent	= CreateEvent( NULL, TRUE, FALSE, NULL );
		//	mNextColorFrameEvent	= CreateEvent( NULL, TRUE, FALSE, NULL );
		//	mNextSkeletonEvent		= CreateEvent( NULL, TRUE, FALSE, NULL );
		//}

		return KF_OK;
	}
	



}
